<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
</head>
<body>
<h1>测评</h1>
<form action="/student/comment.do">



</form>
</body>
<script>
    var form=document.querySelector("form")
    var html=""
    loade();
    function loade(){
        $.post("/teacher/selectTeacher.do?status=1",function (res){
            console.log(res.data[0].tnumber)
            console.log(res.data[0].courseId)
            for (var i=0;i<res.data.length;i++){
                html+=`
                     <thead>
                        <p>
                        <label>课程名称:</label>
                        <span class="span1">${res.data[i].courseName}</span>

                        </p>
                        <input hidden name="courseId" value="${res.data[i].courseId}">
                        <input hidden name="tnumber" value="${res.data[i].tnumber}">

                         <p>
                         <label>老师名称:</label>
                         <span class="span2">${res.data[i].name}</span>
                         </p>
                        <p><label>评教信息:</label><input name="info"/></p>
                         <p><button type="submit">提交</button> </p>
                      </thead>


                `
            }
            form.innerHTML=html
        })
    }


</script>
</html>